Fix pygrub handling non-default entry
authorMiroslav Rezanina <mrezanin@redhat.com>
Thu, 17 Jan 2013 13:53:07 +0000 (13:53 +0000)
committerMiroslav Rezanina <mrezanin@redhat.com>
Thu, 17 Jan 2013 13:53:07 +0000 (13:53 +0000)
commit0289e710ca443cd4d8698bcac9203c194e764510
tree489cf1d136e0d945ba738f8a7a316243a92ab56b
parentcc5434c933153c4b8812d1df901f8915c22830a8
Fix pygrub handling non-default entry

If we pass 0 as pygrub --entry argument (i.e. we want to boot first item), default value is used instead. This is dueto wrong check for range of allowed values of index - 0 is index of first item.

Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
Acked-by: Matt Wilson <msw@amazon.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
tools/pygrub/src/pygrub